/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package diet.XMLUtils;

import diet.dto.DishDetailDTO;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
 *
 * @author Vrety
 */
@XmlAccessorType(XmlAccessType.FIELD)
//@XmlType(name = "", propOrder = {
//    "dishes"
//})
@XmlRootElement(name = "dishDetails")
public class DishDetails {

    @XmlElement(required = true)
    private List<DishDetailDTO> dishDetails;

    /**
     * @return the dish
     */
    public List<DishDetailDTO> getDetailDTOs() {
        if (dishDetails == null) {
            setDishDetail(new ArrayList<DishDetailDTO>());
        }
        return this.dishDetails;
    }

    /**
     * @param dishDetail the dishDetail to set
     */
    public void setDishDetail(List<DishDetailDTO> dishDetails) {
        this.dishDetails = dishDetails;
    }
    
}
